﻿Imports Runa.Resources.ResourceManager
Imports Microsoft.Xna.Framework
Imports System.IO

Namespace Global.Runa.UI.Metadata

    Public Class FontObjectConverter
        Inherits TypeConverter

        Public Sub New(g As Game)
            MyBase.New(g)
        End Sub

        Public Overrides Function ConvertFromInvariantString(text As String) As Object
            Return New FontObject(Path.GetFileNameWithoutExtension(text), text, Me.Game)
        End Function

        Public Overrides Function ConvertFromString(text As String) As Object
            Return ConvertFromInvariantString(text)
        End Function

    End Class

End Namespace